/**
* ...
* @author Default
* @version 0.1
*/

package bdz.cms.core{

	public class CMSConfig extends Object {
		public var baseURL:String;
		public var scriptPage:String;
		public var mediaFolder:String;
		
		private static var instance:CMSConfig;
		public static const JSON_RESPONSE:String = "json";
		public static const XML_RESPONSE:String = "xml";
		
		function CMSConfig(paccess:PrivateAccess):void {
			if(paccess == null){
				throw new Error("NullPointerException...");
			}
		}
		public static function getConfig():CMSConfig{
			if(instance == null){
				instance = new CMSConfig(new PrivateAccess());
			}
			return instance;
		}
	}
	
}
/**
 * @private
 * 
 */
class PrivateAccess{}